<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>JSDoc: Module: underscore</title>

<!--
    <script src="http://shjs.sourceforge.net/sh_main.min.js"> </script>
    <script src="http://shjs.sourceforge.net/lang/sh_javascript.min.js"> </script>
-->
    <!--[if lt IE 9]>
      <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <link type="text/css" rel="stylesheet" href="styles/node-dark.css">
    <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>

<body>

<div id="main">
    
    <h1 class="page-title">Module: underscore</h1>
    
    



<section>
    
<header>
    <h2>
    underscore
    </h2>
    
</header>  

<article>
    <div class="container-overview">
    
    
    
        
            <div class="description"><p>The <code>fwlib/underscore</code> module wraps the legacy build of the <code>lodash</code> library
and adds some Fireworks-specific methods.  The <code>lodash</code> code has been
minified in a way that works within the Fireworks JS engine, but you can
change the <code>define()</code> call in this file to load <code>"fwlib/lodash"</code> if you
want to load the un-minified code to help with debugging.</p>

<p>The Lo-Dash functions that rely on <code>setTimeout()</code> have been overridden to
throw errors, since that function is not available within Fireworks.  The
library has also been patched so that <code>_.has()</code> uses the <code>in</code> operator
instead of <code>hasOwnProperty()</code> when checking for properties on native objects,
which don't correctly support <code>hasOwnProperty()</code>.</p>

<p>In addition to the standard Lo-Dash methods like <code>_.isFunction()</code>, there
are equivalent methods for all native Fireworks types, like <code>_.isImage()</code>,
which can be useful when filtering the selection.  Note that <code>_.isGroup()</code>
will return false if the group is actually a smart shape, and <code>
_.isSmartShape()</code> will return true in that case.</p>

<p>The <code>_.createObject()</code> method has been enhanced to take a <code>properties</code>
parameter that will add the properties from an object passed in as the
second parameter.</p>

<p>This module calls <code>_.noConflict()</code> to remove the global <code>_</code> reference
that Lo-Dash creates by default.</p></div>
        
        
        
<dl class="details">
    
        
	
	
	

	
	
	
	
	
	
	
	
	
	
	
	
	
	<dt class="tag-source">Source:</dt>
	<dd class="tag-source"><ul class="dummy"><li>lib/fwlib/underscore.js, line 5</li></ul></dd>
	
    
    
	
	
	
	
</dl>

        
        
    
    </div>
    
    
    
    
    
    
        <h3 class="subsection-title">Requires</h3>
        
        <ul>
            <li>module:fwlib/lodash.min</li>
        </ul>
    
    
    
    
    
    
    
    
    
    
    
    
    
</article>

</section>  




</div>

<nav>
    <h2><a href="index.html">Index</a></h2><h3>Modules</h3><ul><li><a href="module-DomStorage.html">DomStorage</a></li><li><a href="module-files.html">files</a></li><li><a href="module-fonts.html">fonts</a></li><li><a href="module-layers.html">layers</a></li><li><a href="module-prefs.html">prefs</a></li><li><a href="module-underscore.html">underscore</a></li></ul><h3>Classes</h3><ul><li><a href="a321565296.html">DomStorage</a></li><li><a href="module-layers.Layer.html">Layer</a></li><li><a href="module-layers.LayerTree.html">LayerTree</a></li><li><a href="module-prefs.PrefsStorage.html">PrefsStorage</a></li><li><a href="_.html">_</a></li></ul>
</nav>

<br clear="both">

<footer>
    Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3</a> on Mon Jul 08 2013 09:13:10 GMT-0700 (PDT)
</footer>

<script> sh_highlightDocument(); </script>
</body>
</html>
